export interface IProps {
  global: any;
  buttonPermissions: any;
  stationDataPowerConfig: any;
  menuCode: string;
  currentUser: any;
}

export enum IFileType {
  VIDEO = 1, // 视频
  PDF = 2, // PDF
}

export interface IPublishInfoDataType {
  id?: number; //ID
  firstMenuId?: string; //一级菜单ID
  firstMenuName?: string; //一级菜单名称
  secondMenuId?: string; //二级菜单ID
  secondMenuName?: string; //二级菜单名称
  tabMenuId?: string; //tab菜单ID
  tabMenuName?: string; //tab菜单名称
  fileId?: string; //已上传的文件ID
  fileName?: string; //文件名称
  fileType?: IFileType; // 文件类型
  filePath?: string; // 文件路径
  fileSize?: number; //文件大小
  creatorId?: number; //创建人ID
  creatorName?: string; //创建人姓名
  modifyId?: number; //修改人ID
  modifyName?: string; //修改人姓名
  createTime?: string; //创建时间
  modifyTime?: string; //修改时间
  rank?: number; //顺序号
}

export interface ITabMenuListType {
  firstMenuId?: string;
  name?: string;
  infoList?: IPublishInfoDataType[];
  menuCode?: string;
  secondMenuList?: {
    name?: string;
    secondMenuId?: string;
    menuCode?: string;
    infoList?: IPublishInfoDataType[];
    tabMenuList?: {
      modifyTime?: string;
      rank?: number;
      secondMenuId?: string;
      tabMenuId?: string;
      menuCode?: string;
      tabMenuName?: string;
      infoList?: IPublishInfoDataType[];
    }[];
  }[];
}

export interface IDataSourceType {
  key?: string;
  parentKey?: string;
  title?: string;
  value?: string;
  label?: string;
  infoList?: IPublishInfoDataType[];
  menuCode?: string;
  children?: IDataSourceType[];
}

export interface IQueryFQAParamsType {
  current: number;
  keywords?: string;
  size: number;
}

export interface IPublishFQADataType {
  id?: number;
  content?: string;
  rank?: number;
  title?: string;
}
